﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GDISim._Infrastructure;

namespace GDISim._Test
{
    public class TestInfrastructure
    {

        public static void RunTest()
        {
            Infrastructure.GlobalInfrastructure.CreateInfrastructure("../../_Input/_Hardware/Infrastructure.xml");
            Infrastructure.GlobalInfrastructure.AddApplicationWorkload("../../_Input/_Software/_CAD/CADWorkload.xml");
            //Infrastructure.GlobalInfrastructure.AddApplicationWorkload("../../_Input/_Software/_VIS/VISWorkload.xml");
            //Infrastructure.GlobalInfrastructure.AddApplicationWorkload("../../_Input/_Software/_PDM/PDMWorkload.xml");
            Infrastructure.GlobalInfrastructure.AddApplicationDefinition("../../_Input/_Software/_CAD/CADApplication.xml");
            //Infrastructure.GlobalInfrastructure.AddApplicationDefinition("../../_Input/_Software/_VIS/VISApplication.xml");
            //Infrastructure.GlobalInfrastructure.AddApplicationDefinition("../../_Input/_Software/_PDM/PDMApplication.xml");
            Infrastructure.GlobalInfrastructure.AddJobFrequency("../../_Input/_Software/_REP/REPJobFrequency.xml");
            Infrastructure.GlobalInfrastructure.AddJobFrequency("../../_Input/_Software/_IDX/IDXJobFrequency.xml");
            Infrastructure.GlobalInfrastructure.AddJobDefinition("../../_Input/_Software/_REP/REPJob.xml");
            Infrastructure.GlobalInfrastructure.AddJobDefinition("../../_Input/_Software/_IDX/IDXJob.xml");
            Infrastructure.GlobalInfrastructure.AddDataOwnership("../../_Input/_Software/_Data/DataOwnership.xml");
            Infrastructure.GlobalInfrastructure.AddDataGrowth("../../_Input/_Software/_Data/DataGrowth.xml");


            Infrastructure.GlobalInfrastructure.StartSimulation(new TimeSpan(0, 0, 0),
                                                                new TimeSpan(0, 16, 0),
                                                                new TimeSpan(0, 15, 0),
                                                                "../../OutputData/test.xls");


        }

    }
}
